package cn.iotnc.camera

import cn.iotnc.camera.util.checkIp
import org.junit.Test

import org.junit.Assert.*

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        assertEquals(4, 2 + 2)
    }

    @Test
    fun ip_isCorrect() {
        val ip = "10.239.40.0"
        println("ip_isCorrect = ${ip.checkIp()}")
        assert(ip.checkIp())
    }
}